/*
 * Taken from
 * http://developer.expressionz.in/blogs/2009/03/07/calling-multiple-windows-onload-functions-in-javascript/
 */

function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
       window.onload = func
    } else {
       window.onload = function() {
           if (oldonload) {
                  oldonload()
          }
          func()
       }
   }
}

/*
 * A working solution, but 
 * not very good...
 */

//window.onload = function() {
//    Darken.darkenElement('topleft');
//    Lighten.lightenElement('bottom');
//}

/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


